package com.hytc.mymall.activity.explain;

import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.ListView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.hytc.mymall.R;
import com.hytc.mymall.adapter.MerchantCreditAdapter;
import com.hytc.mymall.base.BaseActivity;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * Created by allkiss on 2016/12/8.
 * 消费系列
 */

public class MerchantCreditActivity extends BaseActivity {
    @BindView(R.id.iv_title_left)
    ImageView ivTitleLeft;
    @BindView(R.id.rl_back)
    RelativeLayout rlBack;
    @BindView(R.id.toolbar_title)
    TextView toolbarTitle;
    @BindView(R.id.toolbar_title_arrow)
    ImageView toolbarTitleArrow;
    @BindView(R.id.rl_title)
    RelativeLayout rlTitle;
    @BindView(R.id.iv_mynews)
    ImageView ivMynews;
    @BindView(R.id.tv_info_commit)
    TextView tvInfoCommit;
    @BindView(R.id.rl_right)
    RelativeLayout rlRight;
    @BindView(R.id.tv_merchantcredit_name)
    TextView tvMerchantcreditName;
    @BindView(R.id.ll_merchantcredit_search)
    LinearLayout llMerchantcreditSearch;
    @BindView(R.id.btn_merchantcredit_search)
    Button btnMerchantcreditSearch;
    @BindView(R.id.tv_salesman_total)
    TextView tvSalesmanTotal;
    @BindView(R.id.ll_merchantcredit)
    LinearLayout llMerchantcredit;
    @BindView(R.id.ptrlv_salesman)
    ListView ptrlvSalesman;
    MerchantCreditAdapter adapter;
    @Override
    protected void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        setContentView(R.layout.activity_merchantcredit);
        ButterKnife.bind(this);
        initView();
    }

    private void initView() {
        rlBack.setVisibility(View.VISIBLE);
        toolbarTitle.setText("商家信用");
        toolbarTitleArrow.setVisibility(View.VISIBLE);
        adapter=new MerchantCreditAdapter(this);
        ptrlvSalesman.setAdapter(adapter);
    }

    @OnClick({R.id.rl_back, R.id.ll_merchantcredit_search, R.id.btn_merchantcredit_search,R.id.rl_title})
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.rl_back:
                finish();
                break;
            case R.id.ll_merchantcredit_search:
                break;
            case R.id.btn_merchantcredit_search:
                break;
            case R.id.rl_title:
                break;
        }
    }
}
